import request from '@/config/axios'

export const createProject = async (data) => {
  return await request.post({ url: '/project/base/create', data })
}

export const getProjectList = async (data) => {
  return await request.get({ url: '/project/base/page', data })
}

export const getGalleryInfoFromProject = (id) => {
  return request.get({ url: `/gallery/base/get?id=${id}` })
}

export const editProjectBaseInfo = async (data) => {
  return await request.put({ url: '/project/base/update', data })
}

export const deleteProjectById = async (id) => {
  return await request.delete({ url: '/project/base/delete?id=' + id })
}
